package com.stylefeng.guns.rest.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 广告地图表
 * </p>
 *
 * @author ruiyifeng123
 * @since 2019-02-18
 */
@TableName("wz_adv_map")
public class WzAdvMap extends Model<WzAdvMap> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "adv_map_id", type = IdType.ID_WORKER)
    private Long advMapId;
    /**
     * 用户编号
     */
    @TableField("user_code")
    private Long userCode;
    /**
     * 行政编号
     */
    @TableField("ad_code")
    private String adCode;
    /**
     * 地址信息
     */
    @TableField("user_info_id")
    private Long userInfoId;
    /**
     * 头像
     */
    @TableField("avatar_url")
    private String avatarUrl;
    /**
     * logo图标
     */
    private String logo;
    /**
     * 经度
     */
    private String longitude;
    /**
     * 纬度
     */
    private String latitude;
    /**
     * 详细地址
     */
    @TableField("merchant_full_address")
    private String merchantFullAddress;
    /**
     * 商户电话
     */
    @TableField("merchant_tel")
    private String merchantTel;
    /**
     * 排序
     */
    @TableField("daily_amount")
    private Integer dailyAmount;
    /**
     * 红包人均金额
     */
    @TableField("redpacket_average_reward")
    private Integer redpacketAverageReward;
    /**
     * 红包发布数量
     */
    @TableField("redpacket_total_number")
    private Integer redpacketTotalNumber;
    /**
     * 名称
     */
    private String name;
    /**
     * 副标题
     */
    private String subtitle;
    /**
     * 一级分类
     */
    @TableField("adv_map_category_first")
    private String advMapCategoryFirst;
    /**
     * 二级分类
     */
    @TableField("adv_map_category_second")
    private String advMapCategorySecond;
    /**
     * 三级分类
     */
    @TableField("adv_map_category_third")
    private String advMapCategoryThird;
    /**
     * 展示天数
     */
    @TableField("day_number")
    private Integer dayNumber;
    /**
     * 结束时间
     */
    @TableField("end_time")
    private Date endTime;
    /**
     * 状态：0-编辑中;1-发布中;2-审核中；3-审核通过;4-发布修改审核中;5-新增驳回;6-修改驳回9-到期；10-删除；
     */
    private Integer status;
    /**
     * 详情
     */
    @TableField("adv_map_detail")
    private String advMapDetail;
    /**
     * 分享链接
     */
    @TableField("share_link")
    private String shareLink;
    /**
     * 分享金额
     */
    @TableField("share_reward")
    private Integer shareReward;
    /**
     * 类型:1-广告;2-审核中;  
     */
    private Integer type;
    /**
     * 发布类型:1-用户发布;2-后台发布;
     */
    @TableField("publishing_type")
    private Integer publishingType;
    /**
     * 子类型:1-广告;2-带红包;3-带分享;10-都带;
     */
    private Integer subtype;
    /**
     * 是否推荐：0-否；1-是；
     */
    @TableField("is_recommend")
    private Integer isRecommend;
    /**
     * 推荐排序
     */
    private Integer sort;
    /**
     * 目标id
     */
    @TableField("target_id")
    private String targetId;
    /**
     * 分享广告id
     */
    @TableField("share_adv_id")
    private String shareAdvId;
    /**
     * 红包广告id
     */
    @TableField("redpacket_adv_id")
    private String redpacketAdvId;
    /**
     * 广告id
     */
    @TableField("adv_id")
    private String advId;
    /**
     * 驳回备注
     */
    @TableField("reject_remark")
    private String rejectRemark;
    /**
     * 跳转链接名称
     */
    @TableField("link_name")
    private String linkName;
    /**
     * 跳转链接
     */
    private String link;
    /**
     * 跳转链接图标
     */
    @TableField("link_pic")
    private String linkPic;
    /**
     * 业务员姓名
     */
    @TableField("modifier_name")
    private String modifierName;
    /**
     * 总金额
     */
    @TableField("total_amount")
    private Integer totalAmount;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 空
     */
    private String empty;

    @Version
    private Integer version;


    public Long getAdvMapId() {
        return advMapId;
    }

    public void setAdvMapId(Long advMapId) {
        this.advMapId = advMapId;
    }

    public Long getUserCode() {
        return userCode;
    }

    public void setUserCode(Long userCode) {
        this.userCode = userCode;
    }

    public String getAdCode() {
        return adCode;
    }

    public void setAdCode(String adCode) {
        this.adCode = adCode;
    }

    public Long getUserInfoId() {
        return userInfoId;
    }

    public void setUserInfoId(Long userInfoId) {
        this.userInfoId = userInfoId;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getMerchantFullAddress() {
        return merchantFullAddress;
    }

    public void setMerchantFullAddress(String merchantFullAddress) {
        this.merchantFullAddress = merchantFullAddress;
    }

    public String getMerchantTel() {
        return merchantTel;
    }

    public void setMerchantTel(String merchantTel) {
        this.merchantTel = merchantTel;
    }

    public Integer getDailyAmount() {
        return dailyAmount;
    }

    public void setDailyAmount(Integer dailyAmount) {
        this.dailyAmount = dailyAmount;
    }

    public Integer getRedpacketAverageReward() {
        return redpacketAverageReward;
    }

    public void setRedpacketAverageReward(Integer redpacketAverageReward) {
        this.redpacketAverageReward = redpacketAverageReward;
    }

    public Integer getRedpacketTotalNumber() {
        return redpacketTotalNumber;
    }

    public void setRedpacketTotalNumber(Integer redpacketTotalNumber) {
        this.redpacketTotalNumber = redpacketTotalNumber;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    public String getAdvMapCategoryFirst() {
        return advMapCategoryFirst;
    }

    public void setAdvMapCategoryFirst(String advMapCategoryFirst) {
        this.advMapCategoryFirst = advMapCategoryFirst;
    }

    public String getAdvMapCategorySecond() {
        return advMapCategorySecond;
    }

    public void setAdvMapCategorySecond(String advMapCategorySecond) {
        this.advMapCategorySecond = advMapCategorySecond;
    }

    public String getAdvMapCategoryThird() {
        return advMapCategoryThird;
    }

    public void setAdvMapCategoryThird(String advMapCategoryThird) {
        this.advMapCategoryThird = advMapCategoryThird;
    }

    public Integer getDayNumber() {
        return dayNumber;
    }

    public void setDayNumber(Integer dayNumber) {
        this.dayNumber = dayNumber;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getAdvMapDetail() {
        return advMapDetail;
    }

    public void setAdvMapDetail(String advMapDetail) {
        this.advMapDetail = advMapDetail;
    }

    public String getShareLink() {
        return shareLink;
    }

    public void setShareLink(String shareLink) {
        this.shareLink = shareLink;
    }

    public Integer getShareReward() {
        return shareReward;
    }

    public void setShareReward(Integer shareReward) {
        this.shareReward = shareReward;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getPublishingType() {
        return publishingType;
    }

    public void setPublishingType(Integer publishingType) {
        this.publishingType = publishingType;
    }

    public Integer getSubtype() {
        return subtype;
    }

    public void setSubtype(Integer subtype) {
        this.subtype = subtype;
    }

    public Integer getIsRecommend() {
        return isRecommend;
    }

    public void setIsRecommend(Integer isRecommend) {
        this.isRecommend = isRecommend;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getTargetId() {
        return targetId;
    }

    public void setTargetId(String targetId) {
        this.targetId = targetId;
    }

    public String getShareAdvId() {
        return shareAdvId;
    }

    public void setShareAdvId(String shareAdvId) {
        this.shareAdvId = shareAdvId;
    }

    public String getRedpacketAdvId() {
        return redpacketAdvId;
    }

    public void setRedpacketAdvId(String redpacketAdvId) {
        this.redpacketAdvId = redpacketAdvId;
    }

    public String getAdvId() {
        return advId;
    }

    public void setAdvId(String advId) {
        this.advId = advId;
    }

    public String getRejectRemark() {
        return rejectRemark;
    }

    public void setRejectRemark(String rejectRemark) {
        this.rejectRemark = rejectRemark;
    }

    public String getLinkName() {
        return linkName;
    }

    public void setLinkName(String linkName) {
        this.linkName = linkName;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String getLinkPic() {
        return linkPic;
    }

    public void setLinkPic(String linkPic) {
        this.linkPic = linkPic;
    }

    public String getModifierName() {
        return modifierName;
    }

    public void setModifierName(String modifierName) {
        this.modifierName = modifierName;
    }

    public Integer getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(Integer totalAmount) {
        this.totalAmount = totalAmount;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getEmpty() {
        return empty;
    }

    public void setEmpty(String empty) {
        this.empty = empty;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    protected Serializable pkVal() {
        return this.advMapId;
    }

    @Override
    public String toString() {
        return "WzAdvMap{" +
        "advMapId=" + advMapId +
        ", userCode=" + userCode +
        ", adCode=" + adCode +
        ", userInfoId=" + userInfoId +
        ", avatarUrl=" + avatarUrl +
        ", logo=" + logo +
        ", longitude=" + longitude +
        ", latitude=" + latitude +
        ", merchantFullAddress=" + merchantFullAddress +
        ", merchantTel=" + merchantTel +
        ", dailyAmount=" + dailyAmount +
        ", redpacketAverageReward=" + redpacketAverageReward +
        ", redpacketTotalNumber=" + redpacketTotalNumber +
        ", name=" + name +
        ", subtitle=" + subtitle +
        ", advMapCategoryFirst=" + advMapCategoryFirst +
        ", advMapCategorySecond=" + advMapCategorySecond +
        ", advMapCategoryThird=" + advMapCategoryThird +
        ", dayNumber=" + dayNumber +
        ", endTime=" + endTime +
        ", status=" + status +
        ", advMapDetail=" + advMapDetail +
        ", shareLink=" + shareLink +
        ", shareReward=" + shareReward +
        ", type=" + type +
        ", publishingType=" + publishingType +
        ", subtype=" + subtype +
        ", isRecommend=" + isRecommend +
        ", sort=" + sort +
        ", targetId=" + targetId +
        ", shareAdvId=" + shareAdvId +
        ", redpacketAdvId=" + redpacketAdvId +
        ", advId=" + advId +
        ", rejectRemark=" + rejectRemark +
        ", linkName=" + linkName +
        ", link=" + link +
        ", linkPic=" + linkPic +
        ", modifierName=" + modifierName +
        ", totalAmount=" + totalAmount +
        ", createTime=" + createTime +
        ", empty=" + empty +
        ", version=" + version +
        "}";
    }
}
